#include<stdio.h>
#include<Windows.h>
#pragma warning(disable:4996)


char* StrCpy(char *s2,char *s1,int len)
{
	int string[50];
	int i = 0, j = len;
	while (s1[i]){
		string[len] = s1[i];
		len++, i++;
	}
	return *string;
}


int main()
{
	char str1[] = "Sample string";
	char str2[20] = "a:";
	int len= strlen(str2);
	
	printf("len = %d\n", len);
	printf("%s\n", StrCpy(&str1, &str2, len));
	system("pause");
	return 0;
}